﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%{
      foreach (var item in ViewData["singleitem"] as System.Collections.Generic.IEnumerable<SmartCollector.WebUI.Models.tbl_Item>)
      {%>
<div class="leading clearfix">
    <div class="contentpaneopen">
        <h1 class="contentheading">
            <a id="title" href="/Item/Details/<%=item.Id %>" class="contentpagetitle">
                <%=item.Title %></a>
            <%--<%:Html.ActionLink(item.Title,"Details",new {id=item.ID} %>--%>
        </h1>
        <div class="article-tools clearfix">
            <div class="article-meta" style="width: 100%;">
                <span class="createdate">
                    <%=item.Date %>
                </span><span class="createby">
                    <%=item.tbl_ReferenceSite.SiteName %>
                </span>
            </div>
        </div>
        <div class="article-content">
        <% if (!string.IsNullOrEmpty(item.ImageUrl))
           {  %>
            <div style="float: left;" class="img_caption left">
             <a  href="/Item/Details/<%=item.Id %>" class="contentpagetitle">
                <img src="<%=item.ImageUrl %>" class="caption"
                    align="left" style="width:200px;height:200px" /></a></div>
                    <%} %>
            <p>
                <%=item.Description %></p>
        </div>
    </div>
</div>
<%}
  } %>
